package com.jwthhealth_pub.wristband.view;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.jwthhealth_pub.R;
import com.jwthhealth_pub.common.base.BaseActivity;
import com.jwthhealth_pub.common.view.TitleLayout;
import com.jwthhealth_pub.wristband.view.adapter.SportListAdapter;

import butterknife.BindView;
import butterknife.ButterKnife;

import static com.jwthhealth_pub.common.LogUtil.makeLogTag;

/**
 * 手环 运动记录
 * Created by yang on 2017/12/26.
 */

public class SportListActivity extends BaseActivity {

    private final String TAG = makeLogTag(SportListActivity.class);

    @BindView(R.id.title_layout)
    TitleLayout titleLayout;
    @BindView(R.id.rv_msg)
    RecyclerView rvMsg;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_sport_list);
        ButterKnife.bind(this);
        rvMsg.setLayoutManager(new LinearLayoutManager(this));
        rvMsg.setAdapter(new SportListAdapter(this));

    }

    @Override
    protected void title() {
        titleLayout.setOnTitleLayoutListener(new TitleLayout.TitleLayoutListener() {
            @Override
            public void leftclick() {
                finish();
            }
            @Override
            public void leftTextClick() {
            }
            @Override
            public void rightclick() {
            }
            @Override
            public void rightTextClick() {
            }
        });
    }
}
